package com.ruoyi.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.system.domain.BModel;
import com.ruoyi.system.domain.vo.BModelVo;
import com.ruoyi.system.service.BModelService;
import com.ruoyi.system.mapper.BModelMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author yangxingze
* @description 针对表【b_model(Ai指南表)】的数据库操作Service实现
* @createDate 2024-10-11 23:30:55
*/
@Service
public class BModelServiceImpl extends ServiceImpl<BModelMapper, BModel>
    implements BModelService{

    /**
     * 获模型列表
     * @return
     */
    @Override
    public List<BModelVo> getList(String name) {
        return baseMapper.getList(name);
    }

    /**
     * 根据条件查询模型列表
     * @param model
     * @return
     */
    @Override
    public List<BModelVo> selectModelList(BModel model) {
        return baseMapper.selectModelList(model);
    }

    /**
     * 根据id查询模型
     * @param id
     * @return
     */
    @Override
    public BModelVo selectModelById(Long id) {
        return baseMapper.selectModelById(id);
    }

    /**
     * 删除模型
     * @param ids
     * @return
     */
    @Override
    public int deleteModelByIds(Long[] ids) {
        return baseMapper.deleteModelByIds(ids);
    }

}




